# Ops.py - 
class Phone:
	def __init__(self):
		self.run = True
		self.app_lock = e32.Ao_lock()
		
	def quit(self):
		self.run = False
		self.app_lock.signal()
	
	# Returns whether or not program is supposed to be running or not.
	def isRunning(self):
		return self.run
	isRunning = classmethod(isRunning)
		
	# Allows UI to sieze control of the program.
	def lockWait(self):
		self.app_lock.wait()
		
class DataAccess:
	def __init__(self):
		import EventHandler
		self.events = EventHandler()
		
	def getEvents():
		self.events.getEvents()